﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CatMouseMaster
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat cat = new Cat("汤姆");
            Mouse mouse1 = new Mouse("杰瑞");
            Mouse mouse2 = new Mouse("舒克");
            Master master1 = new Master("冰墩墩");
            Master master2 = new Master("雪容融");
            cat.cryEvent += mouse1.escape;
            cat.cryEvent += mouse2.escape;
            mouse1.escapeEvent += master1.Wakeup;
            mouse1.escapeEvent += master2.Wakeup;
            cat.cry();
            Console.ReadLine();

        }
    }
}
